import request from '@/utils/request'

// 申请权限列表
export function getApplyPermissionList(data) {
  return request.service({
    url: '/applypermission/queryPage',
    method: 'post',
    data
  })
}

/**
 * 单个审批
 * @param  {applyPermissionId(主键ID),muState(状态)} data
 */
export function setApplyPermission(data) {
  return request.service({
    url: '/applypermission/audit',
    method: 'put',
    data
  })
}

// 活动信息列表
export function getActivityList(data) {
  return request.service({
    url: '/activityregistration/queryPage',
    method: 'post',
    data
  })
}

// 转赞评列表
export function getCommentList(data) {
  return request.service({
    url: '/dynamicinfoforward/queryForwardDynamicThumbup',
    method: 'post',
    data
  })
}

// 更新评论表（设为精选评论）
export function updataComment(data) {
  return request.service({
    url: '/dynamiccomment/update',
    method: 'put',
    data
  })
}